package com.fzl.spring_chatroom.model.mapper;

import com.fzl.spring_chatroom.model.dao.User;
import com.fzl.spring_chatroom.model.response.UserLoginResponse;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    // 插入用户。注册功能
    Integer insert(User user);

    // 登录用户
    User selectUserByName(String username);

    User selectUserById(Integer userId);

    int updateAvatar(Integer userId, String avatar);

    User selectUserByIdOrName(String keyword);
}
